package cn.smvc.sys.web;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.smvc.common.web.BaseServlet;

@WebServlet("/main")
public class MainServlet extends BaseServlet{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4737130631504965695L;

	public void execute(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
		request.getRequestDispatcher("/jsp/main.jsp").forward(request, response);
	}
	
	public void toTimedTaskManage(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
		request.getRequestDispatcher("/WEB-INF/jsp/task/timedtask.jsp").forward(request, response);
	}
	
	public void toTimedTaskLog(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
		request.getRequestDispatcher("/WEB-INF/jsp/task/timedtasklog.jsp").forward(request, response);
	}
	
	public void toTimedTaskContactManage(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
		request.getRequestDispatcher("/WEB-INF/jsp/main.jsp").forward(request, response);
	}
	
	public void toSysDictManage(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
		request.getRequestDispatcher("/WEB-INF/jsp/sys/sysdict.jsp").forward(request, response);
	}
}
